@extends('admin.layout')
@section('content')
    <div class="content-wrapper">
        <!-- Content Header (Page header) -->
        <section class="content-header">
            <h1>
                用户管理
                <small>列表</small>
            </h1>
            <ol class="breadcrumb">
                <li><a href="#"><i class="fa fa-dashboard"></i> 后台</a></li>
                <li><a href="#">用户管理</a></li>
                <li class="active">列表</li>
            </ol>
        </section>

        <!-- Main content -->
        <section class="content">
            <div class="row">
                <div class="col-xs-12">
                    <div class="box">
                        <div class="box-header">
                            <h3 class="box-title">快速查看用户列表</h3>
                        </div><!-- /.box-header -->
                                    
                       <div class='row'>
                        <form action='{{url('admin/goods/menu')}}' method="get">
                          <div class='col-md-4'>
                                <div class='form-group'>
                                    <select name='num' class="form-control" >
                                        <option value='10' 
                                        
                                        >10</option>

                                        <option value='20' 
                                          
                                        >20</option>
                                        <option value='50'
                                       
                                        >50</option>
                                        <option value='100'
                                        
                                        >100</option>
                                       
                                    </select>
                                </div>    
                           </div>
                         <div class='col-md-6 col-md-offset-2'>
                          <div class="input-group input-group-sm">
                                <input class="form-control" type="text" name='keyword' value=
                                  {{$request['keyword'] or ''}}
                                >
                                 <span class="input-group-btn">
                                   <button class="btn btn-info btn-flat" >搜索</button>
                                 </span>
                          </div>
                         </div>
                         </form>
                       </div> 
                        
                            
                           
                            <table id="example2" class="table table-bordered table-hover">
                                <thead>
                                <tr>
                                    <th> ID</th>
                                    <th>商品名</th>
                                    <th>父类</th>
                                  
                                  
                                   
                                    <th>操作</th>
                                </tr>
                                </thead>
                                <tbody>
                           
                                   @foreach($data as $user)
                                <tr>
                                    <td>{{ $user -> id}}</td>
                                    <td class ='ajaxName'>{{ $user -> name}}
                                    </td>
                                    <td>
                                    
                                         {{ $user -> cname}}
                                     
                                    </td>
                                    
                                    
                               
                                    
                                    
                                     <td> <a href="{{url('/admin/sort/alter')}}/{{$user -> id}}">编辑</a> 
                                         <a href="{{url('/admin/sort/delete')}}/{{$user -> id}}">删除</a>
                                    </td>
                                </tr>
                                 @endforeach
                  
                            </table>
                           

                               
                                
                        </div><!-- /.box-body -->
                    </div><!-- /.box -->
                </div><!-- /.col -->
            </div><!-- /.row -->
        </section><!-- /.content -->

    </div><!-- /.content-wrapper -->
                        
@endsection